package cn.vcjf.weapp.api.goods.service;

import cn.vcjf.weapp.api.goods.entity.GoodsRefundOrder;
import cn.vcjf.weapp.api.payment.qfwxpay.model.VcQfPayRes;
import cn.vcjf.weapp.common.web.TableResult;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
public interface GoodsRefundOrderService extends IService<GoodsRefundOrder> {
	/**
	 * 发起退款
	 * @param goodsRefundOrder
	 * @return
	 */
	TableResult refundGoodsOrder(GoodsRefundOrder goodsRefundOrder);

	/**
	 * 同意退款
	 * @param goodsRefundOrder
	 * @return
	 */
	VcQfPayRes agreeGoodsRefundOrder(GoodsRefundOrder goodsRefundOrder);


	TableResult sendRefundOrderMessage(Integer id);

	VcQfPayRes doCancelCollageRefund(GoodsRefundOrder goodsRefundOrder);

	Page<GoodsRefundOrder> selectRefundOrderList(Page<GoodsRefundOrder> page, GoodsRefundOrder goodsRefundOrder);

	JSONObject sendMinAppDeliveryMessage(GoodsRefundOrder order, String openId, String form_id);
}
